#define _CRT_SECURE_NO_WARNINGS 1


#include<vector>
#include<list>
#include<iostream>

using namespace std;

template<class Container>
void Print(const Container con)
{
	auto it = con.begin();
	while (it != con.end())
	{
		cout << *it << ' ';
		it++;
	}
	cout << endl;
}

int main()
{
	vector<int> v1 = { 1,2,3,4,5 };
	Print(v1);

	list<int> l1 = { 1,2,3 };
	Print(l1);

	return 0;
}